package com.ouheng.shop.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.ouheng.shop.dao.ProductRegionDao;
import com.ouheng.shop.domain.ProductRegionDO;
import com.ouheng.shop.service.ProductRegionService;



@Service
public class ProductRegionServiceImpl implements ProductRegionService {
	@Autowired
	private ProductRegionDao productRegionDao;
	
	@Override
	public ProductRegionDO get(Long id){
		return productRegionDao.get(id);
	}
	
	@Override
	public List<ProductRegionDO> list(Map<String, Object> map){
		return productRegionDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return productRegionDao.count(map);
	}
	
	@Override
	public int save(ProductRegionDO productRegion){
		return productRegionDao.save(productRegion);
	}
	
	@Override
	public int update(ProductRegionDO productRegion){
		return productRegionDao.update(productRegion);
	}
	
	@Override
	public int remove(Long id){
		return productRegionDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return productRegionDao.batchRemove(ids);
	}
	
}
